import request from '@/utils/request'

// 查询人员评价列表
export function listEvaluation(query) {
  return request({
    url: '/evaluation/memberEvaluation/list',
    method: 'get',
    params: query
  })
}

// 查询人员评价列表
export function listAllEvaluation(query) {
  return request({
    url: '/evaluation/memberEvaluation/listAll',
    method: 'get',
    params: query
  })
}
// 查询人员评价列表
export function listEvaluationByMember(query) {
  return request({
    url: '/evaluation/memberEvaluation/listAllByDeptId',
    method: 'get',
    params: query
  })
}

// 查询人员评价项目
export function listAllByMemberId(query){
  return request({
    url: '/evaluation/memberEvaluation/listAllByMemberId',
    method: 'get',
    params: query
  })
}

// 提交评价
export function evaluate(data){
  return request({
    url: '/evaluation/memberEvaluation/evaluate',
    method: 'post',
    data: data
  })
}

// 查询人员评价详细
export function getEvaluation(id) {
  return request({
    url: '/evaluation/memberEvaluation/' + id,
    method: 'get'
  })
}

// 新增人员评价
export function addEvaluation(data) {
  return request({
    url: '/evaluation/memberEvaluation',
    method: 'post',
    data: data
  })
}

// 修改人员评价
export function updateEvaluation(data) {
  return request({
    url: '/evaluation/memberEvaluation',
    method: 'put',
    data: data
  })
}

// 删除人员评价
export function delEvaluation(id) {
  return request({
    url: '/evaluation/memberEvaluation/' + id,
    method: 'delete'
  })
}
